<template>
    <el-container>
        <el-header height="75px" style="padding: 0">
            <div class="header">教务系统学生管理系统</div>
        </el-header>
        <el-container>
            <el-aside width="200px">左边</el-aside>
            <el-main>main</el-main>
        </el-container>
    </el-container>
</template>

<script>
export default {
    name: "edu-admin",
    mounted() {
        this.getCityWeather("西安")
    },
    methods: {
        getCityWeather(city) {
            let url = "/simpleWeather/query?city=" + encodeURI(city) + "&key=c6b31fe13ce6d2da3b525c1aad1a93ba"
            this.axios.get("/api" + url).then((res) => {
                console.log(res.data, res.status)
            })
        }
    },
}
</script>

<style scoped>
.header{
    background-color: #232323;
    height: 100%;
    color: white;
    font-size: 25px;
    line-height: 75px;
    text-align: center;
    font-weight: bolder;
}

</style>